//招生数据

import BarChart from '@/components/BarChart';
import { Card } from 'antd';
import { useEffect, useState } from 'react';


const Enrollment= ()=>{
    const [monthData,setMonthData]=useState([])
    useEffect(()=>{
        async function getEnrollmentData(){
            const monthNames = [];
                for (let i = 1; i <= 12; i++) {
                const month = i < 10 ? `0${i}` : i;
                monthNames.push(`${month}月`);
                }
                setMonthData(monthNames)
                console.log(monthNames)
        }
        getEnrollmentData()
    },[])
    return(
        <Card>
            <BarChart title={'招生数据'}/>
        </Card>
    )

}
export default Enrollment;